﻿using Newtonsoft.Json;

namespace Brc_PaaS.Common.Model.RabbitMq
{
    public class RabbitMqAllocatePermissionDto:RabbitMqBasicRequestDto
    {
        public string UserName { get; set; }

        public string VirtualHostName { get; set; }
         
        public RabbitMqVirtualHostPermissionDto Permission { get; set; }
    }

    public class RabbitMqVirtualHostPermissionDto
    {
        /// <summary>
        /// 配置（格式为正则表达式）
        /// </summary>
        [JsonProperty("configure")]
        public string Configure { get; set; }
        /// <summary>
        /// 写（格式为正则表达式）
        /// </summary>
        [JsonProperty("write")]
        public string Write { get; set; }
        /// <summary>
        /// 读（格式为正则表达式）
        /// </summary>
        [JsonProperty("read")]
        public string Read { get; set; }
    }
}
